
import { ajax } from './../../utils/ajax';

export const countAdd = {
    type:"countAdd"
}

export const countDesc = {
    type:"countDesc"
}

export const changeCount = payload => (
    {
        type:"changeCount",
        payload 
    }
)

export const changeCity = payload => (
    {
        type:"changeCity",
        payload 
    }
)

export const changeDataTestAsync = async ()=>{
    let res = await ajax.get("http://localhost:3000/api/test")
    return {
        type:'changeDataTestAsync',
        payload:res.data.msg 
    }
}

export const getMvList = async ()=>{
    let res = await ajax.get("http://localhost:3000/movie")
    return {
        type:'getMvList',
        payload:res.data.result  
    }
}

export const changeNum = payload => (
    {
        type:"changeNum",
        payload 
    }
)

export const deleteFlag =  (
    {
        type:"deleteFlag",
     
    }
)